/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package game;

import java.util.Random;
import javax.swing.Icon;

/**
 *
 * @author s0920761
 */
public class Person {
    private String name;
    protected int money;
    private Room place;
    private Icon role_pic;//real role pic

    private int hp=70;
  


    public Person(String name, int money,Icon pic){

        this.name=name;
        this.money=money;
        role_pic=pic;
        
        
    }




      public int get_info_money()
    {
        return money;
    }
      public void set_hp(int i){
          hp=i;
      }

      public int get_hp(){
          return hp;
      }


      public void set_info_money(int s)
    {
        money=s;
    }

    

    public void set_place(Room s)
    {
        this.place=s;
    }

    public Room get_place(){
        return place;
    }

    public Icon get_icon(){
        return role_pic;
    }

     public void set_icon(Icon s){
        role_pic=s;
    }
    



    public String get_name(){
        return name;
    }

    public void set_name(String s){
        name=s;
    }


}
